<template>
	<view class="layout">
		<view class="navbar">
			 <view class="statusBar" ></view> 
			<view class="titleBar" :style="{height:'50px',marginLeft:'30px'}" >
				<view class="title">{{title}}</view>
				<navigator url='/pages/search/search' class="search">
					<uni-icons type="search" color="#888" size="18"></uni-icons>
					<text>搜索</text>
					
				</navigator>
				<image :src="member.avatar" mode="aspectFill"></image>
			</view>
			
			
		</view>
		
		<view class="fill" :style="{height:'50px'}">
			
		</view>
	</view>
</template>

<script setup>
	import {getStatusBarHeight,getTileBarHeight,getNavBarHeight,getLeftIconLeft} from "@/utils/system.js" 
	defineProps({
		title:{
			type:String,
			default:"搜索"
		}
	})
	
	let member=uni.getStorageSync("member")
	console.log("=============搜索=================");
	console.log(member);
	
</script>

<style lang="scss" scoped>
.layout{
	.navbar{
		position: fixed;
		top: 0;
		left:0;
		width:100%;
		z-index: 10;
		background:
		linear-gradient(to bottom,transparent,#fff 400rpx ),
		linear-gradient(to right,#beecd8,#F4E2D8);
		.statusBar{
			// #ifdef H5
			height:80rpx;
			// #endif
			
		}
		.titleBar{
			display: flex;
			padding:0 30rpx;
			align-items: center;
			height: 100rpx;
			.title{
				font-size:20px;
				font-weight: 500;
				color:$text-font-color-1;
			}
			.search{
				width: 220rpx;
				height: 50rpx;
				border-radius: 60rpx;
				background: rgba(255,255,255,0.4);
				border:1px solid #fff;
				margin-left:30rpx;
				color:#999;
				font-size:28rpx;
				display: flex;
				align-items: center;
				text{
					padding-left:10rpx
				}
			}
			
			image{
				margin-top: 6rpx;
				margin-left: 200rpx;
				width: 60rpx;
				height: 60rpx;
				border-radius: 50%;
			}
			
		}
		
		
	}
	
}
</style>